if [ `ps -C nginx --no-header |wc -l` -eq 0 ];then
    /usr/sbin/nginx -c /etc/nginx/nginx.conf
    sleep 2

    if [ `ps -C nginx --no-header |wc -l` -eq 0 ];then
     systemctl stop keepalived
    fi
fi